<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select测试</title>
<link rel="stylesheet" href="/js/layui/css/layui.css"  media="all">
</head>
<body>
#include("/WEB-INF/_system/common/layui_control.html",table='blog',code='id',text='title', value='309794715174174720')
<form id="form"  class="layui-form layui-form-pane"  >
  <div class="layui-form-item" pane>
    <label class="layui-form-label">输入框1</label>
    <div class="layui-input-block">
     #@select("title","标题","blog","id","title","where id = '309794715174174720'","required","309794715174174720") 
   <!--  #@layupload("title","标题","required","309794715174174720") -->
    </div>
  </div>
    <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
<script>
layui.use('form', function(){
  var form = layui.form();
  //监听提交
  form.on('submit(formDemo)', function(data){
	  console.log($("#form").serializeArray())
	  //layer.msg(JSON.stringify($("#form").serializeArray()));
	  //layer.msg($("#form").serializeArray());
    return false;
  });
});
</script>
<script type="text/javascript" src="http://laymi-assets.oss-cn-shanghai.aliyuncs.com/js/jquery-1.11.3/jquery.vericode.js"></script>
<div id="vericode"></div>
<script type="text/javascript">
$('#vericode').vericode({
    size: 20, //字体，默认为16
	length: 6, //长度，默认长度为 4
	focus: false
});
var result = $('#vericode').vericode('test');//true or false
</script>
</body>
</html>